
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import junit.framework.TestCase;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.health.system.javacommon.util.SpringContextUtil;




/**
 * 功能测试
 * @author bzq
 *
 */

public class Test extends TestCase {

//	ClassPathXmlApplicationContext applicationContext = null;
	private SpringContextUtil springContextUtil;

	protected void setUp() throws Exception {
		 String[] param = new String[] {
		 "healthspring/applicationContext-ibatis3-dao.xml",
		 "healthspring/applicationContext-resource.xml",
		 "healthspring/applicationContext-service.xml"
		 
		 };
		 ClassPathXmlApplicationContext context = new
		 ClassPathXmlApplicationContext(
		 param);
		 BeanFactory factory = context.getBeanFactory();
		 // test = (Test) factory.getBean("testAction");
		 springContextUtil = (SpringContextUtil) factory
		 .getBean("SpringContextUtil");
		 super.setUp();		
	}

	protected void tearDown() throws Exception {
		if (null != springContextUtil) {
			springContextUtil = null;
		}
		super.tearDown();
	}

	public void test() throws Exception {
//		ParseContentManager reportManager = 
//			(ParseContentManager) springContextUtil.getBean("parseContentManager");
//		//SysOperatorsManagerImpl sysOperatorsManager = (SysOperatorsManagerImpl) springContextUtil.getBean("sysOperatorsManager");
//		Map map = new HashMap();

		
	}
	

 
	 
}
